package 并发编程12.读写锁测试;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

/**
 * 锁的降级
 *
 * @author idea
 * @data 2019/1/28
 */
public class LockDownLevel {

    public static ReentrantReadWriteLock readWriteLock = new ReentrantReadWriteLock();

    public static Lock readLock = readWriteLock.readLock();

    public static Lock writeLock = readWriteLock.writeLock();


    public void processData() {

    }

}
